<f:subview xmlns:f="http://java.sun.com/jsf/core"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:a4j="http://richfaces.org/a4j"
  xmlns:nxu="http://nuxeo.org/nxweb/util"
  xmlns:nxdir="http://nuxeo.org/nxdirectory"
  xmlns:c="http://java.sun.com/jstl/core"
  xmlns:nxp="http://nuxeo.org/nxweb/pdf"
  id="#{widget.id}">
<c:set var="andLabel" value=" #{messages['label.and']} " scope="view" />
<c:if test="#{nxl:isLikePlainMode(widget.mode)}">
  <nxu:inputList value="#{field}" model="contributorsModel">
    <h:outputText value="#{nxu:userFullName(contributorsModel.rowData)}" />
    <h:outputText
      rendered="#{contributorsModel.rowIndex != contributorsModel.rowCount -1}"
      value="#{nxu:test(contributorsModel.rowIndex == contributorsModel.rowCount -2, andLabel, ', ')}" />
  </nxu:inputList>
</c:if>
<c:if test="#{widget.mode == 'pdf'}">
  <nxp:html>
    <nxu:repeat var="username" items="#{field}" varStatus="status"
      renderTime="#{useRepeatRenderTime}">
      <h:outputText rendered="#{!status.first}" value="#{status.last ? andLabel : ', '}" />
      <h:outputText value="#{nxu:userFullName(username)}" title="#{username}" />
    </nxu:repeat>
  </nxp:html>
</c:if>
<c:if test="#{nxl:isLikeViewMode(widget.mode) || widget.mode == 'edit'}">
  <div>
    <nxu:repeat var="username" items="#{field}" varStatus="status"
      renderTime="#{useRepeatRenderTime}">
      <h:outputText rendered="#{!status.first}" value="#{status.last ? andLabel : ', '}" />
      <h:outputText value="#{nxu:userFullName(username)}"
        title="#{username}"
        styleClass="tipsyShow #{widget.id}_#{status.index}" />
    </nxu:repeat>
  </div>
</c:if>
</f:subview>
